<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class passionedogsitter extends CI_Controller {

 function __construct()
 {
   parent::__construct();
    $this->load->helper('url', 'form');
    $this->load->database();
    $this->load->model('Pet');
    $this->load->model('Utente');
    $this->load->model('Service');
    $this->load->model('Address');
 }

 public function index() {
        
        $data['title'] = "Holiday Dog Passione Dog Sitter";
        $data['keywords'] = "Pet Sitting, House Sitting, Dog Walking, Veterinari, Dog sitter, blog";
        $data['description'] = "Holiday Dog Passione Dog Sitter è il nostro modo di raccontarti il mondo degli animali ";
        $data['robots'] = "index, follow";
        $data['type'] = "article";
        $data['image'] = base_url(). "images/samples/slide1.jpg";
        $data['url'] = base_url() . "passionedogsitter";
        $this->load->view('layout/head', $data);
        $this->load->view('layout/header');
        $this->load->view('layout/nav');
        $this->load->view('blog/lista');
        $this->load->view('layout/footer');
        $this->load->view('layout/end_main');
        $this->load->view('layout/script_section');
        $this->load->view('layout/end');
    }
    
    public function post($name) {
        
        $data['title'] = "Holiday Dog ". ucwords(strtolower(str_replace('-', ' ', $name)));
        $data['keywords'] = "Pet Sitting, House Sitting, Dog Walking, Veterinari, Dog sitter, blog, ".ucwords(strtolower(str_replace('-', ' ', $name)));
        $data['description'] = "Holiday Dog Passione Dog Sitter è il nostro modo di raccontarti il mondo degli animali, parliamo di ".ucwords(strtolower(str_replace('-', ' ', $name)));
        $data['robots'] = "index, follow";
        $data['type'] = "article";
        $data['image'] = base_url(). "images/samples/slide2.jpg";
        $data['url'] = base_url() . "passionedogsitter/post/" . $name;
        $this->load->view('layout/head', $data);
        $this->load->view('layout/header');
        $this->load->view('layout/nav');
        $this->load->view('blog/'.$name);
        $this->load->view('layout/footer');
        $this->load->view('layout/end_main');
        $this->load->view('layout/script_section');
        $this->load->view('layout/end');
    }

 
}
?>